package com.kk.controller;

import com.kk.service.DroolsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * the type of springboot-drools-demo
 *
 * <p>
 * .
 *
 * @author 铁甲小宝
 * @date 2023-06-18
 */
@RestController
@RequiredArgsConstructor
public class DroolsController {

    private final DroolsService service;

    @GetMapping("/getScore")
    public String getScore(Integer price){
        return service.getScore(price);
    }
}
